package com.zmzncs.lmtc.module.customer.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zmzncs.lmtc.module.customer.pojo.car.Car;
import com.zmzncs.lmtc.module.customer.pojo.car.CarDTO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 * 客户-车辆 Mapper 接口
 * </p>
 *
 * @author 任建波
 * @since 2020-08-31
 */
@Repository
public interface CarDao extends BaseMapper<Car> {

    /**获取客户车辆*/
    List<CarDTO> getCustomerCarList(Long customerId);
    /**获取客户计费停车时长*/
    BigDecimal getCustomerChargeParkDuration(Long customerId);
    /**根据车牌号获取客户车辆*/
    CarDTO getCustomerCarByCarNumber(@Param("customerId") Long customerId, @Param("carNumber") String carNumber);
    /**根据车牌号获取客户车辆*/
    CarDTO getValidCarByCarNumber(@Param("carNumber") String carNumber);
}
